﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02001491 RID: 5265
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class UnlockBackGroundMusicScRsp : IMessage<UnlockBackGroundMusicScRsp>, IMessage, IEquatable<UnlockBackGroundMusicScRsp>, IDeepCloneable<UnlockBackGroundMusicScRsp>, IBufferMessage
	{
		// Token: 0x17004245 RID: 16965
		// (get) Token: 0x0600EB5A RID: 60250 RVA: 0x00274FE3 File Offset: 0x002731E3
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<UnlockBackGroundMusicScRsp> Parser
		{
			get
			{
				return UnlockBackGroundMusicScRsp._parser;
			}
		}

		// Token: 0x17004246 RID: 16966
		// (get) Token: 0x0600EB5B RID: 60251 RVA: 0x00274FEA File Offset: 0x002731EA
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return UnlockBackGroundMusicScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17004247 RID: 16967
		// (get) Token: 0x0600EB5C RID: 60252 RVA: 0x00274FFC File Offset: 0x002731FC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return UnlockBackGroundMusicScRsp.Descriptor;
			}
		}

		// Token: 0x0600EB5D RID: 60253 RVA: 0x00275003 File Offset: 0x00273203
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public UnlockBackGroundMusicScRsp()
		{
		}

		// Token: 0x0600EB5E RID: 60254 RVA: 0x00275024 File Offset: 0x00273224
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public UnlockBackGroundMusicScRsp(UnlockBackGroundMusicScRsp other) : this()
		{
			this.unlockedMusicList_ = other.unlockedMusicList_.Clone();
			this.unlockedIds_ = other.unlockedIds_.Clone();
			this.retcode_ = other.retcode_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600EB5F RID: 60255 RVA: 0x00275076 File Offset: 0x00273276
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public UnlockBackGroundMusicScRsp Clone()
		{
			return new UnlockBackGroundMusicScRsp(this);
		}

		// Token: 0x17004248 RID: 16968
		// (get) Token: 0x0600EB60 RID: 60256 RVA: 0x0027507E File Offset: 0x0027327E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<MusicData> UnlockedMusicList
		{
			get
			{
				return this.unlockedMusicList_;
			}
		}

		// Token: 0x17004249 RID: 16969
		// (get) Token: 0x0600EB61 RID: 60257 RVA: 0x00275086 File Offset: 0x00273286
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<uint> UnlockedIds
		{
			get
			{
				return this.unlockedIds_;
			}
		}

		// Token: 0x1700424A RID: 16970
		// (get) Token: 0x0600EB62 RID: 60258 RVA: 0x0027508E File Offset: 0x0027328E
		// (set) Token: 0x0600EB63 RID: 60259 RVA: 0x00275096 File Offset: 0x00273296
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x0600EB64 RID: 60260 RVA: 0x0027509F File Offset: 0x0027329F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as UnlockBackGroundMusicScRsp);
		}

		// Token: 0x0600EB65 RID: 60261 RVA: 0x002750B0 File Offset: 0x002732B0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(UnlockBackGroundMusicScRsp other)
		{
			return other != null && (other == this || (this.unlockedMusicList_.Equals(other.unlockedMusicList_) && this.unlockedIds_.Equals(other.unlockedIds_) && this.Retcode == other.Retcode && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600EB66 RID: 60262 RVA: 0x00275114 File Offset: 0x00273314
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			num ^= this.unlockedMusicList_.GetHashCode();
			num ^= this.unlockedIds_.GetHashCode();
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600EB67 RID: 60263 RVA: 0x0027516F File Offset: 0x0027336F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600EB68 RID: 60264 RVA: 0x00275177 File Offset: 0x00273377
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600EB69 RID: 60265 RVA: 0x00275180 File Offset: 0x00273380
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(32);
				output.WriteUInt32(this.Retcode);
			}
			this.unlockedIds_.WriteTo(ref output, UnlockBackGroundMusicScRsp._repeated_unlockedIds_codec);
			this.unlockedMusicList_.WriteTo(ref output, UnlockBackGroundMusicScRsp._repeated_unlockedMusicList_codec);
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600EB6A RID: 60266 RVA: 0x002751E0 File Offset: 0x002733E0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			num += this.unlockedMusicList_.CalculateSize(UnlockBackGroundMusicScRsp._repeated_unlockedMusicList_codec);
			num += this.unlockedIds_.CalculateSize(UnlockBackGroundMusicScRsp._repeated_unlockedIds_codec);
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600EB6B RID: 60267 RVA: 0x00275244 File Offset: 0x00273444
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(UnlockBackGroundMusicScRsp other)
		{
			if (other == null)
			{
				return;
			}
			this.unlockedMusicList_.Add(other.unlockedMusicList_);
			this.unlockedIds_.Add(other.unlockedIds_);
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600EB6C RID: 60268 RVA: 0x002752A2 File Offset: 0x002734A2
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600EB6D RID: 60269 RVA: 0x002752AC File Offset: 0x002734AC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num <= 40U)
				{
					if (num == 32U)
					{
						this.Retcode = input.ReadUInt32();
						continue;
					}
					if (num == 40U)
					{
						goto IL_3F;
					}
				}
				else
				{
					if (num == 42U)
					{
						goto IL_3F;
					}
					if (num == 66U)
					{
						this.unlockedMusicList_.AddEntriesFrom(ref input, UnlockBackGroundMusicScRsp._repeated_unlockedMusicList_codec);
						continue;
					}
				}
				this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
				continue;
				IL_3F:
				this.unlockedIds_.AddEntriesFrom(ref input, UnlockBackGroundMusicScRsp._repeated_unlockedIds_codec);
			}
		}

		// Token: 0x04005D2C RID: 23852
		private static readonly MessageParser<UnlockBackGroundMusicScRsp> _parser = new MessageParser<UnlockBackGroundMusicScRsp>(() => new UnlockBackGroundMusicScRsp());

		// Token: 0x04005D2D RID: 23853
		private UnknownFieldSet _unknownFields;

		// Token: 0x04005D2E RID: 23854
		public const int UnlockedMusicListFieldNumber = 8;

		// Token: 0x04005D2F RID: 23855
		private static readonly FieldCodec<MusicData> _repeated_unlockedMusicList_codec = FieldCodec.ForMessage<MusicData>(66U, MusicData.Parser);

		// Token: 0x04005D30 RID: 23856
		private readonly RepeatedField<MusicData> unlockedMusicList_ = new RepeatedField<MusicData>();

		// Token: 0x04005D31 RID: 23857
		public const int UnlockedIdsFieldNumber = 5;

		// Token: 0x04005D32 RID: 23858
		private static readonly FieldCodec<uint> _repeated_unlockedIds_codec = FieldCodec.ForUInt32(42U);

		// Token: 0x04005D33 RID: 23859
		private readonly RepeatedField<uint> unlockedIds_ = new RepeatedField<uint>();

		// Token: 0x04005D34 RID: 23860
		public const int RetcodeFieldNumber = 4;

		// Token: 0x04005D35 RID: 23861
		private uint retcode_;
	}
}
